﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUS.ISS.ARS.BusinessEntity;

namespace NUS.ISS.ARS.BusinessComponent
{
    public class CountryBC:BaseBC
    {
        public ICollection<Country> GetAllCountries()
        {
            try
            {
                using (var ent = new Entities())
                {
                    return ent.Countries.ToList();
                }
            }
            catch (Exception ex)
            {
                //Todo: Log Exception
            }

            return null;
        }
        public IEnumerable<Country> IEnumGetAllCountries()
        {
            using (var ent = new Entities())
            {
                return ent.Countries.ToList();
            }
        }
    }
}
